package org.javaboy.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.SessionAttributes;

@Controller
@SessionAttributes("name")
public class HelloController {

    private String a;
    @GetMapping("/hello")
    @ResponseBody
    public String hello() {
        a.substring(0);
        return "hello";
    }

}
